import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import Layout from '@/layout/index.vue'
const appRoutes:Array<RouteRecordRaw> = [
    {
        path: '/',
        redirect: '/home',
        component: Layout,
        children: [
            {
                path: 'home',
                name: 'Home',
                component:()=>import(/* webpackChunkName: "home" */ '@/views/home/index.vue')
            }
        ]
    }
]

const router =  createRouter({
    history: createWebHashHistory(),
    routes: appRoutes
})

export default router